package com.xsky.datagrid.impl;

import org.dom4j.Element;

public class Column implements Comparable<Column>{
	
	public int compareTo(Column other) { 		
		return seq-other.seq;
	}
	private String name;
	private String label;
	private String type;
	
	private Element xml;
	
	public Element getXml() {
		return xml;
	}
	public void setXml(Element xml) {
		this.xml = xml;
	}
	private Integer seq = 0;
	
	public Integer getSeq() {
		return seq;
	}
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	private boolean pk; 
	
	public boolean isPk() {
		return pk;
	}
	public void setPk(boolean pk) {
		this.pk = pk;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
}
